package com.happyfamily.springboot.crowdsourcingplatform.dao.wang;

import com.happyfamily.springboot.crowdsourcingplatform.model.Parameter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ParameterDao
{
	public List<Parameter> searchParameter(@Param("startP") Integer startP,@Param("endP") Integer endP,@Param("ptype")String ptype,@Param("starttime")String starttime,@Param("endtime")String endtime);
	public Long searchCount(@Param("ptype")String ptype,@Param("starttime")String starttime,@Param("endtime")String endtime);
	public List<String> selectType();
	public int selectPname(@Param("ptype") String ptype,@Param("pname")String pname);
	public int parameterAdd(@Param("ptype") String ptype,@Param("pname")String pname,@Param("ptime")String ptime);
	public int parameterUpdata(@Param("ptype") String ptype,@Param("pname")String pname,@Param("ptime")String ptime,@Param("pid")String pid);
	public int parameterDelete(@Param("pid")String pid);

}
